package han.yang.service.friendship.model.req;

import han.yang.common.enums.FriendShipStatusEnum;
import han.yang.common.model.RequestBase;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.List;

/**
 * @author yanghan
 * @date 2023/2/25
 */
public class ImportFriendShipReq extends RequestBase implements Serializable {
    @NotBlank(message = "不能为空")
    private String fromId;

    private List<ImportFriendDto> friendItem;

    public String getFromId() {
        return fromId;
    }

    public void setFromId(String fromId) {
        this.fromId = fromId;
    }

    public List<ImportFriendDto> getFriendItem() {
        return friendItem;
    }

    public void setFriendItem(List<ImportFriendDto> friendItem) {
        this.friendItem = friendItem;
    }

    public static class ImportFriendDto implements Serializable{
        /**
         *
         */
        private String toId;

        private String remark;

        private String addSource;

        private Integer status = FriendShipStatusEnum.FRIEND_STATUS_NO_FRIEND.getCode();

        private Integer black = FriendShipStatusEnum.BLACK_STATUS_NORMAL.getCode();

        public String getToId() {
            return toId;
        }

        public void setToId(String toId) {
            this.toId = toId;
        }

        public String getRemark() {
            return remark;
        }

        public void setRemark(String remark) {
            this.remark = remark;
        }

        public String getAddSource() {
            return addSource;
        }

        public void setAddSource(String addSource) {
            this.addSource = addSource;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public Integer getBlack() {
            return black;
        }

        public void setBlack(Integer black) {
            this.black = black;
        }
    }
}
